<template>
    <div>
        
        {{fumessage}}

    </div>
</template>

<script>
    export default {
        name:"zi",
        data(){
            return{
                zimessage:"子组件子组件"
            }
        },

        //////////////////////////
        //子传父

        created(){
            this.$emit("zi-message",this.zimessage)
        },

        /////////////////////////


        /////////////////////////
        //父传子
        props:{
            fumessage:String,
        }
        /////////////////////////

    }
</script>

<style lang="scss" scoped>

</style>